<?php

class FRM_Tools_Date {
	public function getHours($date) {
		return intval(date('H', $date));
	}
	
	public function getMinutes($date) {
		return intval(date('i', $date));
	}
	
	public static function setHM($date, $h, $m) {
		if ($date) {
			$d = new Zend_Date ( $date );
			$d->setHour ( $h );
			$d->setMinute ( $m );
			return $d->getTimestamp ();
		}
		return 0;
	}
}